package com.lizy.order.stock;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * name 指定调用rest接口所对应的服务名
 * path 指定调用rest接口所在的Stockontroller指定@RequestMaping
 */
@FeignClient(name = "stock-service",path = "/stock")
public interface StockFeignService {
    //声明需要调用的rest接口对应方法上的url路径
    @RequestMapping("/reduct")
    String reduct();
}
